package com.study.designmodes.service.strategy.lmpl;

import com.study.designmodes.enums.BusinessCodeEnum;
import com.study.designmodes.request.BusinessObjectRequest;
import com.study.designmodes.service.strategy.StrategyService;
import org.springframework.stereotype.Service;

/**
 * 策略一
 *
 * @author yyb8152
 * @since 20220402
 **/
@Service
public class StrategyServiceOneImpl implements StrategyService {
    @Override
    public BusinessObjectRequest routeBusiness() {
        BusinessObjectRequest businessObjectRequest = new BusinessObjectRequest();
        businessObjectRequest.setBusinessCode(BusinessCodeEnum.DECLARE_INSURANCE_STOP);
        businessObjectRequest.setCode("7878");
        businessObjectRequest.setAreaCode("65000");
        businessObjectRequest.setInsuranceCategory("医保");
        return businessObjectRequest;
    }

    @Override
    public String downloadFile(BusinessObjectRequest businessObjectRequest) {

        return "url:" + businessObjectRequest.getBusinessCode();
    }
}
